﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Cherry.Agile.Framework.Common;

namespace Cherry.Agile.Security
{
    internal class EmptyAuthorizationProvider : IAuthorizationProvider
    {
        public User Authorize(ITicket ticket)
        {
            return null;
        }

        public User GetUser(ITicket identity)
        {
            return null;
        }

        public Role[] GetUserRoles(ITicket identity)
        {
            return new Role[] { };
        }

        public Organization[] GetUserOrgs(ITicket identity)
        {  
            return new Organization[]{};
        }
        
        public Application[] GetApplicationInfos() {
            return new Application[] { };
        }
    }
}
